package com.liupengyuan.one.service;

import java.util.List;

import com.liupengyuan.framework.web.query.IGenericPage;
import com.liupengyuan.one.model.Tree;

public interface TreeService {
	public List<Tree> findListBy(Tree tree, String sort, String dir);
	public IGenericPage<Tree> findPageBy(Tree tree, int pageNo, int pageSize,	String sort, String dir);
	public Tree getById(String id);
	public Integer save(Tree tree);
	public Integer update(Tree tree);
	public Integer deleteByIds(String[] ids);
	public Integer deleteById(String id);
	public Integer saveOrUpdate(Tree tree);
	public Integer getCountByParam(Tree tree);
	public List<Tree> findByparentId(String parentId);
}
